package org.ycx.common.dto;

import org.ycx.common.constants.RespCode;

/**
 * Created by 杨 on 2017-07-20.
 */
public class RespMSG {

    private String code;
    private String desc;
    private String reqSN;
    private String respSN;
    private Object data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getReqSN() {
        return reqSN;
    }

    public void setReqSN(String reqSN) {
        this.reqSN = reqSN;
    }

    public String getRespSN() {
        return respSN;
    }

    public void setRespSN(String respSN) {
        this.respSN = respSN;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public RespMSG(RespCode code) {
        this.code = code.code;
        this.desc = code.desc;
    }

    public RespMSG(){}

    public void initResp(RespCode code) {
        this.code = code.code;
        this.desc = code.desc;
    }
}
